package com.black.app.domain.req.store.add;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Getter
@Setter
@ApiModel(value = "商品添加请求模型")
public class AppStoreProductsAddReq {

    /*@ApiModelProperty(value = "商品id", required = true)
    @NotNull(message = "{appstoreproducts.not.productId}")
    private Integer productId;*/

    /**
     * 商品名
     */
    @ApiModelProperty(value = "商品名", required = true)
    @NotNull(message = "{appstoreproducts.not.productName}")
    private String productName;

    /**
     * 是否售卖
     */
    @ApiModelProperty(value = "是否售卖", required = true)
    @NotNull(message = "{appstoreproducts.not.saleNot}")
    private Integer saleNot;

    /**
     * 商品图片
     */
    @ApiModelProperty(value = "商品图片", required = true)
    @NotNull(message = "{appstoreproducts.not.imageUrl}")
    private String imageUrl;

    /**
     * 上级类别id
     */
    @ApiModelProperty(value = "上级类别id", required = true)
    @NotNull(message = "{appstoreproducts.not.superId}")
    private Integer superId;

    /**
     * 商品价格
     */
    @ApiModelProperty(value = "商品价格", required = true)
    @NotNull(message = "{appstoreproducts.not.productPrice}")
    private BigDecimal productPrice;

    /**
     * 商品详情描述
     */
    @ApiModelProperty(value = "商品详情描述", required = true)
    @NotNull(message = "{appstoreproducts.not.detail}")
    private String detail;

    /**
     * 是否打折，打几折，根据会员等级打折
     */
    @ApiModelProperty(value = "是否打折，打几折，根据会员等级打折", required = true)
    @NotNull(message = "{appstoreproducts.not.isDiscount}")
    private Integer isDiscount;

    /**
     * 是否允许积分兑换
     */
    @ApiModelProperty(value = "是否允许积分兑换", required = true)
    @NotNull(message = "{appstoreproducts.not.isCreditsExchange}")
    private Integer isCreditsExchange;

    /**
     * 商品运费模版
     */
    @ApiModelProperty(value = "商品运费模版", required = true)
    private Integer templateId;

    /**
     * 是否包邮
     */
    @ApiModelProperty(value = "是否包邮", required = true)
    @NotNull(message = "{appstoreproducts.not.freeNot}")
    private Integer freeNot;
}
